package lzzy.edu.cn.demothymeleaf.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.jws.WebParam;

@Controller

public class AdminController {
    @GetMapping("/admin")
    public String adminPage(Model model) {
        model.addAttribute("managementData", "这里是管理数据");
        return "admin"; // 返回 admin.html
    }

}